PythonのassertEqualは1 == True
code: python
>> assert 1 == True
>> assert 0 == False
>> assert 2 == True
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AssertionError
True/Falseを
int
で変換している?
1 == True: unittestの例
1 == True: pytestの例